-- GENERATED SPELL FOR [Vicious Teromoth] --


function spell0_18437(pUnit, Event) --@Dazzling Dust,n/a--
pUnit:FullCastSpellOnTarget(32913,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18437', 5314, 1)
end

function spell1_18437(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_18437', 1000, 1)
end

function Sorts_18437(pUnit, Event)
local choix_sorts_18437 = math.random(0, 1)
if choix_sorts_18437 == 0 then
pUnit:RegisterEvent('spell0_18437', 1, 1)
end
if choix_sorts_18437 == 1 then
pUnit:RegisterEvent('spell1_18437', 1, 1)
end
end

function mob18437_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18437', math.random(1500, 3000), 1)
end

function mob18437_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18437_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18437_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18437, 1, 'mob18437_Action')
RegisterUnitEvent(18437, 2, 'mob18437_Leave')
RegisterUnitEvent(18437, 3, 'mob18437_Kill')
RegisterUnitEvent(18437, 4, 'mob18437_Die')
